
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import pinadapter from 'pinia-plugin-persistedstate'
import './common/base.css'
import App from './App.vue'
import router from './router'

/* 这里要改成es */
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
const app = createApp(App)
//设置语言
app.use(ElementPlus, { locale: zhCn })

app.use(createPinia().use(pinadapter))
app.use(router)

app.mount('#app')
